package  
{
	/**
	 * ...
	 * @author Martina Rasch
	 */
	
	import net.flashpunk.Entity;
	import net.flashpunk.World;
	import net.flashpunk.utils.Input;
	import net.flashpunk.FP;
	 
	public class BGWorld extends World
	{
		private static var width:int;
		private static var height:int;
		
		public function BGWorld(e:Entity, w:int = 800, h:int = 600) 
		{
			width = w;
			height = h;
			add(e);
		}
		
		override public function update():void {
			super.update();
			
			if (Input.mousePressed) {
				FP.world = new Menu(width, height);
			}
		}
	
	}	

}